package chapter05

/**
 *
 * @author cdhuangchao3
 * @date 2023/6/4 7:16 PM
 */
object Test01_FunctionAndMethod {
  def main(args: Array[String]): Unit = {
    def sayHi(name:String): Unit ={
      println("hi!"+name)
    }
    sayHi("zs")
    Test01_FunctionAndMethod.sayHi("zs")
  }
  def sayHi(name:String): Unit ={
    println("hi2!"+name)
  }
}
